import React, { Component } from 'react'

export default class App extends Component {
  handleClick(e) {
    // e => event
    console.log('Hello World', e.target.innerHTML)
  }
  render() {
    return (
      <div>
        <button onClick={this.handleClick}>打印，调用原型上面的方法</button>
        <button
          onClick={(e) => {
            console.log(e)
          }}
        >
          打印，调用原型上面的方法
        </button>
      </div>
    )
  }
}
